<div ng-controller="expCenterListCtrl">
    <div class="table-header clearfix ng-scope">
        <span class="fl lh30 f14">体验账号设置</span>
        <div class="fr btn-group">
            <a href="javascript: void(0)" class="btn"
               ng-if="userAuthList.indexOf('1101') !== -1"
               ui-dialog="创建账号"
               ui-dialog-cache="false"
               ui-dialog-show ="onShowCreateDialog($dialog,$dialogScope)"
               ui-dialog-ok="createAccount($dialog,$dialogScope)"
               ui-dialog-url="${require('./dialog/add-account-dialog.html?url')}">创建账号</a>
        </div>
    </div>

    <div id="grid" class="table-responsive mt10">
        <table class="table table-hover">
            <thead>
            <tr>
                <th width="120">体验账号</th>
                <th width="120">登录密码</th>
                <th width="680">快捷登录链接</th>
                <th width="50">状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="record in expCenterList">
                <td>{{record.username}}</td>
                <td>
                    {{record.pwd}}
                </td>
                <td>
                    <a class="tab-text" href="{{record.url}}">{{record.url}}</a>
                </td>
                <td>
                    {{record.status==1?'启用':'禁用'}}
                </td>
                <td>
                    <a href="javascript: void(0)"
                       class="tab-text"
                       ng-if="userAuthList.indexOf('1101') !== -1"
                       ui-dialog="修改"
                       ui-dialog-cache="false"
                       ui-dialog-show ="onShowResetPwdDialog(record,$dialog,$dialogScope)"
                       ui-dialog-ok="resetPwd(record,$dialog,$dialogScope)"
                       ui-dialog-url="${require('./dialog/resetpwd.html?url')}">修改</a>
                </td>
            </tr>
            </tbody>
        </table>
        <div class="no-data" style="display:none"><span>暂无数据</span></div>
    </div>
    <div id="pagination" class="pagination"></div>
</div>
